package com.leen.video.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

/**
 *
 * @author yy
 * @since 2021-05-19
 */
@Getter
@Setter
@Entity
@Table(name = "gen_config")
@ApiModel(value="GenConfig对象", description="代码生成器配置")
public class GenConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;


    @ApiModelProperty(value = "表名")
    @Column(name = "table_name")
    private String tableName;

    @ApiModelProperty(value = "作者")
    @Column(name = "author")
    private String author;

    @ApiModelProperty(value = "是否覆盖")
    @Column(name = "cover")
    private Boolean cover;

    @ApiModelProperty(value = "模块名称")
    @Column(name = "module_name")
    private String moduleName;

    @ApiModelProperty(value = "至于哪个包下")
    @Column(name = "pack")
    private String pack;

    @ApiModelProperty(value = "前端代码生成的路径")
    @Column(name = "path")
    private String path;

    @ApiModelProperty(value = "前端Api文件路径")
    @Column(name = "api_path")
    private String apiPath;

    @ApiModelProperty(value = "表前缀")
    @Column(name = "prefix")
    private String prefix;

    @ApiModelProperty(value = "接口名称")
    @Column(name = "api_alias")
    private String apiAlias;


}
